package com.kimehwa.studyboot.config;

import com.kimehwa.studyboot.bean.learnspring.LogAspects;
import com.kimehwa.studyboot.bean.learnspring.MathCalculator;
import org.springframework.context.annotation.*;

/**
 * @author xiaodongguan
 * @description
 * @since 2021-08-26 10:16
 */

@EnableAspectJAutoProxy
@ComponentScan(value = "com.kimehwa.studyboot.bean.learnspring")
@Configuration
public class MainConfigOfLifeCycle {


    @Bean
    public LogAspects logAspects(){
        return new LogAspects();
    }
    @Bean
    public MathCalculator mathCalculator(){
        return new MathCalculator();
    }
}
